package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class WelcomController {


    @GetMapping(value = "/welcome")
    public String welcome(HttpServletRequest request
    ) {


        return "welcome";
    }

    @GetMapping(value = "/index")
    public String index(HttpServletRequest request
    ) {


        return "index";
    }

    @GetMapping(value = "/wangrui")
    public String wangrui(HttpServletRequest request
    ) {


        return "wangrui";
    }


}
